package com.alex.spring.springBase;/**
 * Created by Administrator on 2018\10\5 0005.
 */

import java.util.List;
import java.util.Map;
import java.util.Properties;
import java.util.Set;

/**
 * @author Administrator
 * @date 2018\10\5 0005
 */
public class JavaCollection {
    List addressList;
    Set  addressSet;
    Map  addressMap;
    Properties addressProp;
    

    /**
     * a setter method to set List
     * @param addressList
     */
    public void setAddressList(List addressList) {
        this.addressList = addressList;
    }

    /**
     *  prints and returns all the elements of the list.
     * @return
     */
    public List getAddressList() {
        System.out.println("List Elements :"  + addressList);
        return addressList;
    }

    /**
     * a setter method to set Set
     * @param addressSet
     */
    public void setAddressSet(Set addressSet) {
        this.addressSet = addressSet;
    }

    /**
     * prints and returns all the elements of the Set.
     * @return
     */
    public Set getAddressSet() {
        System.out.println("Set Elements :"  + addressSet);
        return addressSet;
    }

    /**
     * a setter method to set Map
     * @param addressMap
     */
    public void setAddressMap(Map addressMap) {
        this.addressMap = addressMap;
    }

    /**
     * prints and returns all the elements of the Map.
     * @return
     */
    public Map getAddressMap() {
        System.out.println("Map Elements :"  + addressMap);
        return addressMap;
    }

    /**
     * a setter method to set Property
     * @param addressProp
     */
    public void setAddressProp(Properties addressProp) {
        this.addressProp = addressProp;
    }

    /**
     * prints and returns all the elements of the Property.
     * @return
     */
    public Properties getAddressProp() {
        System.out.println("Property Elements :"  + addressProp);
        return addressProp;
    }
}
